from DrissionPage import Chromium, ChromiumOptions
from DrissionPage.common import Settings

from lib.spider.mongodb import fetch_mongodb_versions
from lib.spider.mysql import fetch_mysql_versions
from lib.spider.pgsql import fetch_pgsql_versions

Settings.set_language("zh_cn")


def main():
    options = ChromiumOptions()
    # options.set_browser_path()
    options.set_local_port(9333)
    options.set_argument("--disable-notifications", "true")
    browser = Chromium(options)

    # fetch_mysql_versions(browser)
    # fetch_mongodb_versions(browser)
    fetch_pgsql_versions(browser)



if __name__ == '__main__':
    main()
